<template>
  <div>
    <DynamicForm ref="dynamicForm"  
                              :formDataProp="formDataProp" 
                              :mainTaskInfoProp="mainTaskInfoProp" 
                              :subTaskInfoProp="subTaskInfoProp"  
                              :taskNodeNameProp="taskNodeNameProp" 
                              :defectListProp="defectListProp" />
  </div>
</template>

<script>
  import DynamicForm from './dynamic-form.vue';

  export default {
      name: 'Form4', 
      components: { DynamicForm },
      props: {
          formDataProp: {
              type: Object,
              default: {}
          },
          mainTaskInfoProp: {
              type: Object,
              default: {}
          },
          subTaskInfoProp: {
              type: Object,
              default: {}
          },
          taskNodeNameProp: {
              type: String,
              default: ''
          },
          defectListProp: {
              type: Array,
              default: []
          }
      },
      data() {
          return {
          }
      },
      created() {
      },
      mounted() {
      },
      methods: {
        // 获取表单数据
        getFormData(commonParam) {
          return this.$refs.dynamicForm.getFormData(commonParam);
        }
      }
  }
</script>

<style lang="scss" scoped>
</style>